namespace JHT.SimpleTaskSystem.Migrations
{
    using JHT.SimpleTaskSystem.Migrations.SeedData;
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;

    internal sealed class Configuration : DbMigrationsConfiguration<JHT.SimpleTaskSystem.EntityFramework.SimpleTaskSystemDbContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
        }

        protected override void Seed(JHT.SimpleTaskSystem.EntityFramework.SimpleTaskSystemDbContext context)
        {
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method 
            //  to avoid creating duplicate seed data.

            new DefaultPersonCreator(context).Create();
        }
    }
}
